package net.xinshi.boot;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/27.
 */
@Configuration
@ComponentScan(value = "net.xinshi")//配置自动扫描的包
@EnableAutoConfiguration
@ImportResource({"classpath*:applictionContext.xml"})
@Import({WebMvcConfig.class})
public class Application {
    public static void main(String[] args) {
        ApplicationContext ctx = new SpringApplicationBuilder(Application.class).bannerMode(Banner.Mode.OFF).web(true)
                .run(args);
        System.out.println("Open API Platform Application start!!!");
    }
}
